﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PagesLogView.ascx.cs"
    Inherits="Member_Tools_Control_PagesLogView" %>

<script src="/Member/Tools/js/logspage.js" type="text/javascript"></script>

<h2>
    Page :
    <asp:Label ID="lblPageName" runat="server"></asp:Label></h2>
<table class="grid nohover">
    <tr>
        <th width="30px">
        </th>
        <th width="80px">
            Log date
        </th>
        <th width="80px">
            Log date last
        </th>
        <th width="120px">
            Log User
        </th>
        <th width="120px">
            Agent Number
        </th>
        <th>
            Full Name
        </th>
        <th width="80px">
            Views Log
        </th>
    </tr>
    <asp:Repeater ID="rep" runat="server">
        <ItemTemplate>
            <tr>
                <td align="center">
                    <%# Container.ItemIndex + 1 %>
                </td>
                <td align="center">
                    <%# Convert.ToDateTime(Eval("LogDate")).ToString("dd/MM/yyyy HH:mm:ss") %>
                </td>
                <td align="center">
                    <%# Convert.ToDateTime(Eval("LogLast")).ToString("dd/MM/yyyy HH:mm:ss") %>
                </td>
                <td>
                    <%# Eval("WindowsUser") %>
                </td>
                <td>
                    <%# Eval("AgentNumber") %>
                </td>
                <td>
                    <%# Eval("FullName") %>
                </td>
                <td align="center">
                    <div class='click2 view-<%# Eval("Id") %>' id='<%# Eval("Id") %>'>
                        <%# Eval("ViewLogs") %>
                    </div>
                    <div class='view-<%# Eval("Id") %>' style="display:none">
                        <img src="/images/processing.gif" />
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="7" style="display:none" class='log-<%# Eval("Id") %>'>
                </td>
            </tr>
        </ItemTemplate>
    </asp:Repeater>
</table>
